// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

//兼容android低版本问题 和 不支持promise的IE8以下问题
import 'babel-polyfill';
import promise from 'es6-promise'
import Vconsole from 'vconsole'
promise.polyfill()
//或 require('es6-promise').polyfill();

import Vue from 'vue'
import FastClick from 'fastclick';
import App from './App'
import router from './router';
import VueAwesomeSwiper from 'vue-awesome-swiper';
import store from './store/index.js';
import axios from 'axios';


Vue.use(new Vconsole())

const myServerUrl = 'http://www.wujinhui.xyz:81/api/qunar';
axios.defaults.baseURL = (process.env.NODE_ENV === 'development') ? '/api': myServerUrl;

import './assets/styles/reset.css';
import './assets/styles/border.css';
import './assets/styles/iconfont.css';
import 'swiper/dist/css/swiper.css';  // require styles


Vue.use(VueAwesomeSwiper, /* { default global options } */)

Vue.config.productionTip = false;
FastClick.attach(document.body);

/* eslint-disable no-new */
const vm = new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})


